# Word Soup Solver by tw


CC = g++

CFLAGS = -Wall -O2

COMPILE = $(CC) $(CFLAGS) -c

OPENCV = `pkg-config --cflags --libs opencv`

OBJFILES := $(patsubst %.cpp,%.o,$(wildcard *.cpp))


all: wordsoup

wordsoup: $(OBJFILES)
	$(CC) -o wordsoup $(OBJFILES) $(OPENCV)

%.o: %.cpp
	$(COMPILE) -o $@ $< $(OPENCV)

clean:
	rm wordsoup $(OBJFILES)



